NetBSD hotplug: fix block unconfigure on destroy
authorManuel Bouyer <bouyer@netbsd.org>
Tue, 26 Jan 2021 22:47:49 +0000 (23:47 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Jan 2021 22:50:08 +0000 (22:50 +0000)
commit82ed3155fe72a7e15ab28f86a3c1eb970a92d2f6
tree641433fccc91ba9e64166bc6efd37d80395dffb6
parent6e2d9b317d18081eabdc2818c8f80d474a58d499
NetBSD hotplug: fix block unconfigure on destroy

When a domain is destroyed, xparams may not be available any more when
the block script is called to unconfigure the vnd.
Check xparam only at configure time, and just unconfigure any vnd present
in the xenstore.

Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/hotplug/NetBSD/block